rm -vf pkg-manager/lib/*
rm -vf pkg-manager/data/*
rm -vf pkg-manager/package.json
cp -vi src/lib/* pkg-manager/lib/
cp -vi src/data/* pkg-manager/data/
cp -vi pkg-manager.json pkg-manager/package.json
java -jar yuicompressor-2.4.6/build/yuicompressor-2.4.6.jar src/lib/main.js -o pkg-manager/lib/main.js
java -jar yuicompressor-2.4.6/build/yuicompressor-2.4.6.jar src/data/application.js -o pkg-manager/data/application.js
java -jar yuicompressor-2.4.6/build/yuicompressor-2.4.6.jar src/data/armees.js -o pkg-manager/data/armees.js
java -jar yuicompressor-2.4.6/build/yuicompressor-2.4.6.jar src/data/battle.js -o pkg-manager/data/battle.js
java -jar yuicompressor-2.4.6/build/yuicompressor-2.4.6.jar src/data/create.js -o pkg-manager/data/create.js
java -jar yuicompressor-2.4.6/build/yuicompressor-2.4.6.jar src/data/widget.js -o pkg-manager/data/widget.js
addon-sdk-1.1/bin/cfx xpi --pkgdir=pkg-manager --static-args='{"url":"http://kewa.free.fr/minitroopers/create.php"}' #--update-url='http://kewa.free.fr/minitroopers/minitroopers-manager.update.rdf' --update-link='http://kewa.free.fr/minitroopers/latest.php'
mv *.xpi output/
mv *.rdf output/